import React, { useEffect } from "react";
import store from "../redux/store";
import { show, hide } from "../redux/actionCreator/TabbarActionCreator";
export default function Defail(props) {
  useEffect(() => {
    console.log("创建");
    console.log("传过来的参数", props);
    // store.dispatch通知 dispatch通知的action必须有一个type属性
    store.dispatch(hide());
    return () => {
      store.dispatch(show());
      console.log("destory");
    };
  }, []);

  return <div>电影详情页</div>;
}
